package com.dongdongshop.enums;

public enum ResultEnum {

    SUCCESS(10000,"操作成功"),
    ERROR(99999,"操作失败"),
    NOT_FOUND_ACCOUNT(88888,"账户找不到"),
    ACCOUNT_ALREADY_EXISTS(88886,"账户已存在"),
    FAULT_PASSWORD(88887,"密码错误"),
    NOT_FOUND_lIST(88898,"节点下没数据"),
    ACCOUNT_EXCEPTION(88880,"账户异常");

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static void main(String[] args) {
        ResultEnum code = ResultEnum.ERROR;
        System.out.println(code);
    }
}
